package com.tcxhb.job.core.schedule.router;

import com.tcxhb.job.dao.dataobject.JobMachineDO;

import java.util.List;

/**
 * @Description:
 * @Auther: tcxhb
 * @Date: 2023/11/18
 */
public interface MachineRouter {
    /**
     * 机器路由策略
     *
     * @param num
     * @param list
     * @return
     */
    public List<JobMachineDO> route(int num, List<JobMachineDO> list);

    /**
     * 路由策略
     *
     * @param list
     * @return
     */
    public JobMachineDO route(List<JobMachineDO> list);

    /**
     * 根据应用路由
     *
     * @param appName
     * @return
     */
    public List<JobMachineDO> routeByApp(int num,String appName);
}
